package 作业;

import 作业.Book;

public class BookTest {

    public static void main(String[] args) {

        Book book = new Book();

        String info = book.getBookInfo();//获取图书信息

        System.out.println(info);

        String bookNameSetbefore = book.getBookName();
        System.out.println("-------------------------");
        System.out.println(bookNameSetbefore);


        book.setBookName("三国演义");

        String bookNameSetAfter = book.getBookName();
        System.out.println(bookNameSetAfter);
        System.out.println("-------------------------");
        book.setPrice(100);
        book.setAuthor("罗贯中");
        book.setPublisher("新华出版社");


        System.out.println(book.getBookInfo());
    }
}
